package org.example;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import javax.sql.DataSource;

public class ThreeApp {
    public static void main(String[] args) {
        ApplicationContext cxt=new ClassPathXmlApplicationContext("spring.xml");
        DataSource dataSource = (DataSource) cxt.getBean("dataSource");
        System.out.println(dataSource);

    }
}